package ooday01;

public class ConsTest {
    //构造方法的演示
    public static void main(String[] args) {
        Car bm = new Car();
        bm.brand  = "宝马";
        bm.color = "黑色";
        bm.price = 500000;
        bm.capacity = 5;
        bm.start();

        Car ad = new Car("奥迪", "白色", 600000, 5);
        ad.start();

        Car bsj = new Car("保时捷", "蓝色", 1000000, 2);
        bsj.start();
    }
}
